<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>智能答题系统</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <style>
        body {
            margin: 0;
            padding: 20px;
            background: linear-gradient(135deg, #0a1931 0%, #091f40 100%);
            color: #fff;
            font-family: 'Arial', sans-serif;
            min-height: 100vh;
            overflow: hidden;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
        }

        .title {
            text-align: center;
            font-size: 2.5em;
            margin-bottom: 40px;
            text-shadow: 0 0 10px rgba(0, 150, 255, 0.5);
        }

        .question-box {
            background: rgba(16, 42, 67, 0.9);
            border-radius: 15px;
            padding: 30px;
            margin-bottom: 30px;
            box-shadow: 0 0 20px rgba(0, 150, 255, 0.2);
        }

        .question {
            font-size: 36px;
            margin-bottom: 30px;
        }

        .options {
            display: flex;
            flex-direction: column;
            gap: 30px;
        }

        .option {
            padding: 15px;
            border: 2px solid #1e549f;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            background: rgba(30, 84, 159, 0.3);
            line-height: 32px;
            font-size: 22px;
        }

        .option.selected {
            background: #1e549f;
            border-color: #3b8cff;
            box-shadow: 0 0 15px rgba(59, 140, 255, 0.5);
        }

        .controls {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 30px;
        }

        button {
            padding: 12px 30px;
            border: none;
            border-radius: 6px;
            background: #1e549f;
            color: white;
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 1.1em;
        }

        button:hover {
            background: #3b8cff;
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(59, 140, 255, 0.4);
        }

        .score {
            position: fixed;
            left: 20px;
            bottom: 20px;
            font-size: 1.2em;
            color: #3b8cff;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1 class="title">信息科技智能答题系统</h1>
        
        <div class="question-box">
            <div class="question" id="question">
                以下哪个协议用于网页的安全传输？
            </div>
            <div class="options" id="options">
                <div class="option">HTTP</div>
                <div class="option">FTP</div>
                <div class="option selected">HTTPS</div>
                <div class="option">TCP</div>
            </div>
        </div>

        <div class="controls">
            <button onclick="prevQuestion()">上一题</button>
            <button onclick="submitAnswer()">提交答案</button>
            <button onclick="nextQuestion()">下一题</button>
        </div>

        <div class="score">当前得分：<span id="score">0</span> 分</div>
    </div>

    <script>
        let currentSelection = 2; // 当前选中选项索引（从0开始）
        let score = 0;

        // 键盘事件监听
        document.addEventListener('keydown', (event) => {
            const options = document.querySelectorAll('.option');
            
            if (event.key === 'ArrowUp') {
                event.preventDefault();
                currentSelection = Math.max(0, currentSelection - 1);
                updateSelection();
            } else if (event.key === 'ArrowDown') {
                event.preventDefault();
                currentSelection = Math.min(options.length - 1, currentSelection + 1);
                updateSelection();
            }
        });

        // 更新选项选中状态
        function updateSelection() {
            document.querySelectorAll('.option').forEach((opt, index) => {
                opt.classList.toggle('selected', index === currentSelection);
            });
        }

        // 提交答案
        function submitAnswer() {
            // 这里可以添加答案验证逻辑
            score += 10;
            document.getElementById('score').textContent = score;
        }

        // 题目切换函数
        function prevQuestion() {
            // 添加上一题逻辑
        }

        function nextQuestion() {
            // 添加下一题逻辑
        }

        // 初始化选中状态
        updateSelection();
    </script>
</body>
</html>